/**
 * Created by 小敏哥on 2017/3/16.
 */
import apiHelper from './apiHelper';

class ComfirmOrderService{
    //获取订单基本信息
    getOrderInfo(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}order/confirm`,
            data: {
                method: 'get',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }
//支付宝支付订单接口
    orderPay(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}order/pay`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }
    //app支付订单接口
    appOrderPay(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}order/payApp`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }

    //支付通知接口
    payNotification(data){
        let requestParam = {
            url: `${apiHelper.baseApiUrl}order/paySuccess`,
            data: {
                method: 'post',
                body: data
            }
        };
        return apiHelper.fetch(requestParam);
    }

}

export default new ComfirmOrderService();